
import 'package:flutter/material.dart';
import 'package:flutter_app/openeye/widget/app_bar.dart';
import 'package:flutter_app/stateLearn/click_txt.dart';
import 'package:get/get.dart';

import 'controller.dart';

class Other extends StatelessWidget {
  const Other({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    final controller = Get.find<Controller>();
    return materialPage(appBar:appBar("getX测试页面"),page: Container(
      alignment:Alignment.center,
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
      ClickTxt(info: "增加字面量",onPressed: (){
        controller.increment();
      },),
      Obx(()=>Text("${controller.count}")),
    ],),));
  }
}
